﻿Imports System.Data.OleDb
Imports System.Data

Partial Class rss
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        Dim oleDbConn As New OleDb.OleDbConnection(ConfigurationManager.ConnectionStrings("myFirstDatabase").ConnectionString)
        Dim SqlString As String = "SELECT TOP 7 ID, TOPIC FROM TBLARTICLES "
        Dim cmd As OleDbCommand = New OleDbCommand(SqlString, oleDbConn)
        cmd.CommandType = CommandType.Text
        oleDbConn.Open()
        RepeaterRSS.DataSource = cmd.ExecuteReader()
        RepeaterRSS.DataBind()
        oleDbConn.Close()
    End Sub
End Class
